package com.ruoyi.workflow.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 套餐审核对象 bus_car_package_audit
 *
 * @author lhl
 * @date 2022-11-18
 */
@Getter
@Setter
@TableName("bus_car_package_audit")
@ToString
public class CarPackageAudit extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /**状态常量*/
    public static final Integer AUDIT_STATUS_INPROGRESS=0;
    public static final Integer AUDIT_STATUS_REFUSE=1;
    public static final Integer AUDIT_STATUS_PASS=2;
    public static final Integer AUDIT_STATUS_REVOKE=3;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 服务单项id */
    @Excel(name = "服务单项id")
    @TableField("service_item_id")
    private Long serviceItemId;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    @TableField("service_item_name")
    private String serviceItemName;

    /** 套餐备注 */
    @Excel(name = "套餐备注")
    @TableField("service_item_info")
    private String serviceItemInfo;

    /** 套餐价格 */
    @Excel(name = "套餐价格")
    @TableField("service_item_price")
    private BigDecimal serviceItemPrice;

    /** 流程实例ID */
    @Excel(name = "流程实例ID")
    @TableField("instance_id")
    private String instanceId;

    /** 创建者 */
    @Excel(name = "创建者")
    @TableField("creator_id")
    private String creatorId;
    /** 创建者 */
    @Excel(name = "创建名称")
    @TableField(exist = false)
    private String creatorName;
    /** 备注 */
    @Excel(name = "备注")
    @TableField("info")
    private String info;

    /** 状态 */
    @Excel(name = "状态")
    @TableField("status")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    public CarPackageAudit() {
        this.createTime=new Date();
    }
}
